<!DOCTYPE html>
<script src="../include.js"></script>
<svg width="1" height="1">
  <pattern id="pat" width="1" height="1" patternUnits="userSpaceOnUse">
    <rect id="tp" width="1" height="1"></rect>
  </pattern>
</svg>
<script>
  test(() => {
    try {
      document.getElementById("tp").getBBox();
      println("Did not throw");
    } catch (e) {
      println(`Threw ${e.name}`);
    }
  });
</script>